import 'package:citiesocial/beans/goods_entity.dart';

class OrderDetailEntity {
  String order_sn,
      add_time,
      pay_way,
      pay_status,
      pay_time,
      name,
      email,
      address,
      order_amount;
  List<GoodsEntity> goods;

  OrderDetailEntity.fromJson(dynamic json) {
    if (json != null && json is Map) {
      order_sn = json['order_sn'];
      add_time = json['add_time'];
      pay_way = json['pay_way'];
      pay_status = json['pay_status'];
      pay_time = json['pay_time'];
      name = json['name'];
      email = json['email'];
      address = json['address'];
      order_amount = json['order_amount'];
      var list = json['goods'] as List ?? [];
      goods = List();
      for (dynamic g in list) {
        goods.add(GoodsEntity.fromJson(g));
      }
    }
  }
}
